

def read_file(file):   #读
    with open(file) as f:
        content = f.readlines()
    return content
r = read_file('a.txt')
print(r)



def write_file(file):   #写
    with open(file,'w') as f:
       f.write('my beautiful girl')
write_file("s.txt")

